# coding: UTF-8

require "./lib/sanzang/version"

Gem::Specification.new do |s|
  s.required_ruby_version = ">= 1.9.0"
  s.requirements << "parallel ~> 0.8"
  s.add_runtime_dependency("parallel", "~> 0.8")

  s.name         = "sanzang"
  s.summary      = "Machine translation from CJK languages"
  s.version      = Sanzang::VERSION
  s.license      = "GPL-3"

  s.description  = <<-eos
    Sanzang is a compact and simple cross-platform machine translation system.
    It was designed especially for translating from the CJK languages (Chinese,
    Japanese, and Korean), and it is suitable even for translating from ancient
    texts. Sanzang is implemented as a Unix style command suite program, with
    each subcommand carrying out a major function of the system.
  eos
  s.description.gsub!(/[\r\n]/, "").gsub!(/ +/, " ").strip!

  s.authors      = ["Lapis Lazuli Texts"]
  s.email        = "lapislazulitexts@gmail.com"
  s.homepage     = "http://www.lapislazulitexts.com/sanzang/"

  s.executables  = ["sanzang"]
  s.files        = Dir.glob("{bin,test,lib}/**/**/*")
  s.require_path = "lib"
  s.test_files   = Dir.glob("test/tc_*.rb")

  s.rdoc_options = %w[--encoding=UTF-8]
  s.extra_rdoc_files = %w[
    HACKING.rdoc
    LICENSE.rdoc
    MANUAL.rdoc
    NEWS.rdoc
    README.rdoc
  ]
end
